package org.achievement.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.achievement.system.pojo.entity.Course;
import org.achievement.system.pojo.form.CourseForm;
import org.achievement.system.pojo.vo.CourseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseDao extends BaseMapper<Course> {

    /**
     * 查询列表
     *
     * @param courseForm
     * @return
     */
    public List<CourseVo> list(@Param("courseForm") CourseForm courseForm);

    /**
     * 统计查询列表数据
     *
     * @param courseForm
     * @return
     */
    public Integer count(@Param("courseForm") CourseForm courseForm);

}